<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Retrieve the last set exit status</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.uopz-get-exit-status" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">uopz_get_exit_status</h1>
  <p class="verinfo">(PECL uopz 5)</p><p class="refpurpose"><span class="refname">uopz_get_exit_status</span> &mdash; <span class="dc-title">Retrieve the last set exit status</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.uopz-get-exit-status-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>uopz_get_exit_status</strong></span>
    ( <span class="methodparam">void</span>
   ) : <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span></div>

  <p class="para rdfs-comment">
   Retrieves the last set exit status, i.e. the value passed to
   <span class="function"><a href="exit.html" class="function">exit()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.uopz-get-exit-status-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.uopz-get-exit-status-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   This function returns the last exit status, or <strong><code>NULL</code></strong> if <span class="function"><a href="exit.html" class="function">exit()</a></span>
   has not been called.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.uopz-get-exit-status-examples">
  <h3 class="title">范例</h3>
  <div class="example" id="example-573">
   <p><strong>Example #1 <span class="function"><strong>uopz_get_exit_status()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">exit(</span><span style="color: #0000BB">123</span><span style="color: #007700">);&nbsp;<br />echo&nbsp;</span><span style="color: #0000BB">uopz_get_exit_status</span><span style="color: #007700">();</span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
   </div>

   <div class="example-contents"><p>以上例程会输出：</p></div>
   <div class="example-contents screen">
<div class="cdata"><pre>
123
</pre></div>
   </div>
  </div>
 </div>


 <div class="refsect1 notes" id="refsect1-function.uopz-get-exit-status-notes">
  <h3 class="title">注释</h3>
  <div class="caution"><strong class="caution">Caution</strong>
   <p class="para">
    <a href="book.opcache.html" class="link">OPcache</a> optimizes away dead code after unconditional exit.
   </p>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.uopz-get-exit-status-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member"><span class="function"><a href="uopz_allow_exit.html" class="function" rel="rdfs-seeAlso">uopz_allow_exit()</a> - Allows control over disabled exit opcode</span></li>
  </ul>
 </div>


</div></div></div></body></html>